//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "framework\fn_initClient.sqf"
#include <tmf_constants.h>
#include <tmf_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

If (GVAR(CLIENT)) then {
	if (isnil QGVAR(CLIENT_INITIALIZED)) then {
		INFO("     <[]>---- Client : Mission Framework Initializing ----<[]>     ");
		[] call FFUNC(loadJIPVariables);
		[] spawn FFUNC(loadMarkers);
		GVAR(CLIENT_INITIALIZED) = true;
		INFO("     <[]>---- Client : Mission Framework Initialized ----<[]>     ");
	};
	INFO("     <[]>---- Client : Mission Framework Loading ----<[]>     ");
	[] spawn FFUNC(initializeObjects);
	[] spawn FFUNC(loadTasks);
	INFO("     <[]>---- Client : Mission Framework Loaded ----<[]>     ");
	if (!([player] call CFUNC(hasRadio))) then {
		[("STR_TYR_EQUIP_RADIO" call CFUNC(translate))] call CFUNC(notification);
	};
};

TRACE("End");
TMFPROFILERSTOP;